Skip to Main Content
MooTools 1.3 Cookbook
book

MooTools 1.3 Cookbook

by Jay L Johnston
July 2011
Intermediate to advanced content levelIntermediate to advanced
276 pages
5h 11m
English
Packt Publishing
Content preview from MooTools 1.3 Cookbook

Creating an IFRAME that displays google.com

Getting ready

In preparation for this one, some back-story is warranted. One useful tag in the HTML specification was not always supported by all major browsers, the IFRAME. The tag is now supported by all major browsers.

How to do it...

Use the SRC attribute to set the external or internal page to be displayed within this specified division of the page.

<form action="javascript:" method="get"> <input id="submit" type="button" value="i can has search?"/> </form> <noscript>JavaScript is disabled.</noscript> <script type="text/javascript"> $('submit').addEvent('click', function() { // use mootools to create an iframe element new Element('iframe', { 'src' : 'http://google.com', 'frameborder': 1, 'width' : ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Web Performance

Jump Start Web Performance

Craig Buckler

Publisher Resources

ISBN: 9781849515689Other