Welcome To Snipplr
Everyone's Recent Snippets Tagged link
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
to call this function you would use "asfunction:myFunction,argument1,argument2,argument3" as the href in the tag in an HTML text box.
0
1184
posted 17 years ago by Bonky
There must also be a JavaScript function defined in the containing HTML page:
function makePopup(url,pop_name,width,height) {
window.open(url, pop_name, "width="+width+",height="+height+",resizable=yes,scrollbars=yes");
}
1
915
posted 17 years ago by Bonky
Shows you how to link 2 objects together via the object function. If a value isn't found in the object, it will look for it in the linked object.
0
737
posted 17 years ago by 1man
The ideal use of this code would be to save the Javascript code as a .js file. Then use the HTML code at the bottom to call it wherever you want on the web page.
1
1034
posted 18 years ago by Jaymoon