JavaScript How to display a URL from a form box using HTML and a javascript? display form from excel,display data from form javascript,display

Trying to use a form box with HTML to create a url that can be used to change an IFRAME. This is what I currently have.

<input type="url" id="URL" value="">
<button onclick="webFunct()">Go!</button>
<br><a target='_blank' href= id="ViewURL" target="WebViewer></p>

<script>
function webFunct() {
    var x = document.getElementById("URL").value;
    document.getElementById("ViewURL").innerHTML = x;
}
</script>

<iframe width="100%" height="640px" name="WebViewer">
</iframe>

I like the form box to change the IFRAME to the website that was entered by the user to visit. I know this information is minimal and possibly vague but I normally don't ask for help and I don't know what else to ask.

Original code from: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_url_get

Answer:1

You can set URL of iframe programmatically:

document.getElementById('web-view').src = url;

Check this out: http://jsfiddle.net/andunai/d1zavddu/

However, please note that many websites, e.g. google.com and yahoo.com do not permit getting themselves inserted into iframes.

Answer:2

I have a jointjs demo code, which has basic shapes on paper, i want to increase the size of the shape, or highlight the shape on pointer click or cursor moved on the shape, sample demo code goes here ...

I have a jointjs demo code, which has basic shapes on paper, i want to increase the size of the shape, or highlight the shape on pointer click or cursor moved on the shape, sample demo code goes here ...

Let's say I have a row of divs like here: jsfiddle.net/AlphaCrack/veuc80he/1/ I wan't to animate them separately but keeping the same id because I may have to create tons of divs like those and I don'...

Let's say I have a row of divs like here: jsfiddle.net/AlphaCrack/veuc80he/1/ I wan't to animate them separately but keeping the same id because I may have to create tons of divs like those and I don'...

  1. apply same company different job
  2. apply same job different recruiters
  3. apply same css to different classes
  4. apply same formula to different cells
  5. apply same formula to different rows

I am using bootstrap validator v3.1.1 and I am trying to add regexp validation for a text box. I want to don't allow the user to introduce the space ' ', but alow to introduce letters, numers and ...

I am using bootstrap validator v3.1.1 and I am trying to add regexp validation for a text box. I want to don't allow the user to introduce the space ' ', but alow to introduce letters, numers and ...

  1. bootstrap validator regex example
  2. bootstrap validator regex
  3. bootstrap validator regex email
  4. bootstrap validator password regex
  5. bootstrap form validation regex
  6. bootstrap input validation regex
  7. bootstrap 4 validation regex

Hey everybody¬° I'm trying to paint a screen with multiple models and associated views in backbone. For this, I have respestive ajax calls to the server, to get data for this vies. First I considered ...

Hey everybody¬° I'm trying to paint a screen with multiple models and associated views in backbone. For this, I have respestive ajax calls to the server, to get data for this vies. First I considered ...

  1. render multiple views razor
  2. revit render multiple views
  3. express render multiple views
  4. yii2 render multiple views
  5. solidworks render multiple views
  6. rails render multiple views
  7. django render multiple views
  8. backbone render multiple views
  9. render multiple partial views
  10. laravel render multiple views
  11. angularjs render multiple views
  12. cakephp render multiple views
  13. how to render multiple views based on condition
  14. node.js render multiple views
  15. express js render multiple views
  16. how to render multiple views based on condition in mvc
  17. mvc render multiple partial views
  18. codeigniter render multiple views