Let’s take a look at the code for how to implement “get view page images bookmarks”:

javascript:outText='';for(i=0;i<document.images.length;i++){if(outText.indexOf(document.images%5Bi%5D.src)==-1){outText+=' <tr> <td><img%20src='+document.images%5Bi%5D.src+'></td> <td>'+document.images%5Bi%5D.height+'</td> <td>'+document.images%5Bi%5D.width+'</td> <td>'+document.images%5Bi%5D.src+'</td> </tr> <p>'}};if(outText!=''){imgWindow=window.open('','imgWin','width=800,height=600');imgWindow.document.write%20('<table%20border=1%20cellpadding=10> <tr> <th>Image</th> <th>Height</th> <th>Width</th> <th>URL</th> </tr> <p>'+outText+'</table> <p>');imgWindow.document.close()}else{alert('No%20images!')}

How to create view page images bookmark?

Create a New Bookmark: In your web browser, go to the webpage where you want to create the bookmarklet. Then, right-click on your bookmarks bar and select “Add Page” or “Bookmark This Page” (the exact wording may vary depending on your browser).

Name the Bookmark: Give your bookmarklet a descriptive name. You can name it something like “Get Window Size” or whatever you prefer.

Edit the URL/Address: Instead of a website URL, you will enter JavaScript code into the URL field of the bookmark. for getting the window size is as follows: Copy and paste the above code into the URL field of your bookmark.

Save the Bookmark: Click the “Save” or “Done” button to save your new bookmarklet.

Now, whenever you want to check the size of the browser window on a webpage, simply click on the bookmarklet you just created. A popup or alert box will appear, displaying the width and height of the browser window in pixels.Please note that the exact process for creating bookmarks and using bookmarklets may vary slightly depending on your web browser. The above instructions are general guidelines and should work for most modern browsers.