Ok here is your html code.
<html>
<head>
</head>
<body>
<A HREF="javascript:void(0)"
ONCLICK="open('sample.htm','miniwin','toolbar=1,location=1,directories=1,status=1,menubar=1, scrollbars=1,resizable=1,width=300,height=300')">Open a Window</A>
</body>
</html>
You do not specify what HTML code you mean, but I will try to explain.
The <a href> tag is the normal HTML tag, it holds within it the javascipt you need. You then close it by the > tag. You then write whatever you want to link, e.g PRESS HERE TO OPEN A WINDOW, then after that text, put the HTML code </a>
I hope this helps you, if not, please say and I will in the morning when I get into work help you out again
Thanks!Sorry if I am dont specify my problem.
I will try to explain it.
Here's the problem.
I have link to my page.What I want to do is when I click
the link it will open another window.Like the small window.
I know how to create links in HTML. But I am not sure that theres additional code that I need to write in my HTML code when I do the popup window in JS.But anyway I will try your code.
Do you want to open a site or HTML page from a link inside the pop-up window??
If yes, then the link has to have the target as "_blank" because otherwise the link will open the page inside the pop-up (without the toolbars and such)...
EX:
Code:
<a href="somepage.html" target="_blank"> Open Page </a>
I have not failed; I merely found 100,000 different ways of not succeding...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.