Achyuta S
07-20-2005, 07:00 AM
Hi ALL,
I need to the SRC atribute of an Iframe on a button click.
I have displayed a pdf file in an Iframe.
<IFRAME SRC= "E:\Documents\general docs\SDKJSSnippet1.pdf" ID="testiframe"
NAME="testiframe" SCROLLING=yes WIDTH=500 HEIGHT=400 ALIGN=MIDDLE></IFRAME>
Next, I have a textbox with some text (say 'pdf') in it. Now when I click a button, the SRC attribute in the Iframe should change to "E:\Documents\general docs\SDKJSSnippet1.pdf#search='pdf'" . ie, #search='pdf' should be concatenated with the SRC attribute in the end.
Please give me the code to do this ASAP.
thanks & regards,
Achyuta
I need to the SRC atribute of an Iframe on a button click.
I have displayed a pdf file in an Iframe.
<IFRAME SRC= "E:\Documents\general docs\SDKJSSnippet1.pdf" ID="testiframe"
NAME="testiframe" SCROLLING=yes WIDTH=500 HEIGHT=400 ALIGN=MIDDLE></IFRAME>
Next, I have a textbox with some text (say 'pdf') in it. Now when I click a button, the SRC attribute in the Iframe should change to "E:\Documents\general docs\SDKJSSnippet1.pdf#search='pdf'" . ie, #search='pdf' should be concatenated with the SRC attribute in the end.
Please give me the code to do this ASAP.
thanks & regards,
Achyuta