Nayias
11-11-2003, 10:41 AM
hey,
i have a function that opens a new window and then writes some text in the new window...
like this:
Script:
<script type="text/JavaScript">
function new_window(name, picurl, email)
{
var OpenWindow = window.open('','Profile',config='location=0,directories=0');
OpenWindow.document.write('<html><head><title>Profile</title></head>');
OpenWindow.document.write('Name: ' + name + '!');
OpenWindow.document.write('Email: ' + email);
}
</script>
FunctionCall:
<a href="#" onClick="new_window('Nayias','rf_crusher@hotmail.com','http://www.img.com/myimg.jpg')
but now i want an image with the url from the parameter (picurl)
how can i write the image with the correct url in the new_window?
grtz nayias
i have a function that opens a new window and then writes some text in the new window...
like this:
Script:
<script type="text/JavaScript">
function new_window(name, picurl, email)
{
var OpenWindow = window.open('','Profile',config='location=0,directories=0');
OpenWindow.document.write('<html><head><title>Profile</title></head>');
OpenWindow.document.write('Name: ' + name + '!');
OpenWindow.document.write('Email: ' + email);
}
</script>
FunctionCall:
<a href="#" onClick="new_window('Nayias','rf_crusher@hotmail.com','http://www.img.com/myimg.jpg')
but now i want an image with the url from the parameter (picurl)
how can i write the image with the correct url in the new_window?
grtz nayias