|
Javascript is a separate, distinct browser language from HTML. They usually are found imbedded within an HTML script
|
Page 2
Opening a new window using the HTML "target=" option is both simple and easy to implement, as you just discovered.
The problem with the HTML approach, though, is that we have no control over the size, location, or other characteristics of the new window being opened. And so enters ... Javascript!
Javascript has its own commands, and its own syntax, and best of all, can be used right inside of our HTML pages!
For example, here's how we would open up the Trellix home page using Javascript:
window.open('http://www.trellix.com','myWindow');
And for you programmers, here is the syntax for the window.open command:
window.open(sURL, sName);
where:
sURL is a string that specifies the URL of the document to display. If no URL is specified, a new, empty window is created.
sName is a string that specifies the name of the window. This name is used as the value for the TARGET attribute of a <FORM> or <A> tag.
|
So, how do we implement it inside Trellix? Glad you asked ... Next page>
|