Jump to content
44mlb

Entering JavaScript into a iFrame

Recommended Posts

 

Hi,

 

I am very new to scripting and I have tried for a long time now to place the JavaScript below inside an iFrame without success. Therefore any help on how I should do this would be very much appreciated.

<script type="text/javascript">

var tt_bgnd   = '#fff999';

var tt_width  = '100%';

var tt_corner  = '0px';

</script>

<script src="https://www.tidetimes.org.uk/broadstairs-tide-times.js" type="text/javascript"></script>

Share this post


Link to post
Share on other sites

Save that Javascript code in an HTML file, and set the HTML file as the src of the iframe.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×