You need to sign in to do that
Don't have an account?
Harsh Aditya 8
iframe
Hi,
when the user enters a url in a textbox,that url i want to pass as a iframe src.i m not able to pass that url as the iframe src.
when the user enters a url in a textbox,that url i want to pass as a iframe src.i m not able to pass that url as the iframe src.
Will you please share the code so we can help.
Thanks,
Pratik
Pratik
Here is the code-
<apex:page controller="Video6">
<HTML>
<HEAD>
<TITLE>Test Input </TITLE>
<SCRIPT LANGUAGE="JavaScript">
function testResults (form) {
var TestVar = form.inputbox.value;
alert ("You typed: " + TestVar);
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="myform" ACTION="" METHOD="GET">
Enter something in the box:
<INPUT TYPE="text" NAME="inputbox" VALUE="">
<INPUT TYPE="button" NAME="button" Value="Click"
onClick="testResults(this.form)">
</input></input></FORM>
<iframe src="https://www.airtel.in/airtellive/videos" name="iframe" width="1000" height="500">does not support frames</iframe>
</BODY>
</HTML>
</apex:page>
Right now i have given a static airtel link . whatever user writes in the text box ,onclick it will throw an alert.
What i want that user should give any link(website address,or html or visualforce page) in the textbox and that link will be pass as a iframe src and load the same page in the iframe(where currently i have given-- https://www.airtel.in/airtellive/videos)