The createWindow() method opens a new window. You can control the location and target with the two parameters.
Browser support: all
TheMadScript Version: 1.0.0
Syntax: createWindow(src,target);
The "target" parameter can contain any of the HTML targets used. For example, "_self" would replace the window/tab with a new one.
The following syntax below opens a new window directing to www.themadcomputer.com. It may be in a tab or a new window, depending on your browser:
createWindow("http://www.themadcomputer.com/","_blank");
No comments:
Post a Comment