Answers
Oct 08, 2007 - 04:14 AM
get your hyperlink to call a js function
my link
and your js function would have something like this in it
function showpopup()
{
window.open ("http://www.bbc.co.uk","mywindow1","status=1,width=350,height=150");
}
alternatively, if that doesnt work, open up a blank page then write your html code in there which automatically loads the page of your choice
function showpopup()
{
window.open ("","mywindow1","status=1,width=350,height=150");
document.write('Generate Your Code Here');
}
sample code you can use to generate - just check this out
http://www.tips-tricks.com/automa.asp
Oct 11, 2007 - 12:50 AM
That first function that you gave me doesn't seem to work. It is giving me an error, it is telling me that an Object is expected on line 1, character 1.
J
Oct 11, 2007 - 05:28 AM
I think you were really close in the code snip you posted. I've had most of my success using the following without it being destroyed by "most" pop-up blockers: Castagna.net web site
Let me know if this works for you...
Take care,
Ric
Oct 11, 2007 - 05:52 AM
I think that it worked. I'll let you know if I find out otherwise.
J
Oct 12, 2007 - 11:40 AM
regarding the code though, not sure whats going wrong there, I cut/pasted from my sample
We could do with some
style tags so it doesnt interfere with any sample html code posted
!
!
JavaScript Popup Example
hello
my link
Add New Comment