www.webdeveloper.com
Results 1 to 2 of 2

Thread: bookmarklet

  1. #1
    Join Date
    Oct 2006
    Posts
    939

    bookmarklet

    Ok, i whipped up this quick command to paste into address bar
    HTML Code:
    javascript:var%20k='';for(i=0;i<document.images.length;i++){k+='<img%20src="'+document.images[i].src+'">%20'};document.write(k);
    Except the loading bar is always loading. whats wrong with the code?

  2. #2
    Join Date
    Oct 2008
    Location
    U.S.
    Posts
    726
    Change:
    document.write(k);
    to:
    document.open();document.write(k);document.close();

    Without the close() the document does not know you are done with it I guess

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles