I want to make this work...
This is my script-file(.js):
function showText() {
theText = window.textFile.document.body.innerHTML.replace(/\<[^\>]+\>/gm,
"");
}
function productprice(img,titel,path,bestand1,bestand2) {
features =
'toolbar=no,location=no,directories=no,status=no,m enubar=no,' +
'scrollbars=no,resizable=no,width=680,height=600'
dlg = window.open ("","",features)
dlg.document.write ("<HTML>")
dlg.document.write ("<HEAD>")
dlg.document.write ("<TITLE>Try & Buy applicatie :
",titel,"</TITLE>")
dlg.document.write ("</HEAD>")
dlg.document.write ("<link rel=stylesheet href='d2cad.css'
type='text/css'>")
dlg.document.write ("<body onload='window.textFile.location =
",bestand1,"'>")
dlg.document.write ("<CENTER><H3>",titel," </H3></CENTER>")
dlg.document.write ("<CENTER><img src='",img,"'></CENTER>")
dlg.document.write ("<BR><BR><BR><FONT size='2'>")
dlg.document.write ("<form><iframe id='textFile' onLoad='showText()'
align='center'></iframe></form>")
dlg.document.write ("<CENTER><FONT size='2'><B>Handleiding: <A
href='",bestand2,"'>",bestand2,"</A></CENTER>")
dlg.document.write ("<FORM><CENTER><INPUT type='button' value='Close'
onClick = 'self.close()'></CENTER></FORM>")
dlg.document.write ("</BODY>")
dlg.document.write ("</HTML>")
}
And this is my HTML-line:
<a href="#" onclick="productprice('plaatswand03.jpg','Plaatswa nd','download/','data.txt','plaatswand.txt')">test</a>
Thanks for your replies in advance.
Jeroen