Toggle Menu

Charlie Calvert on Elvenware

Writing Code and Prose on Computers

Core Code

OS and Tools

Art

Elvenware

Simulate iPhone on Safari

  • Launch Safari
  • Choose Gear Preferences where Gear is Setup
  • Turn to the Advanced Page
  • Turn on Show Develop Menu in Menubar
  • Press Alt to access menu
  • From menu: **Develop User Agent** and choose iOs

Some JavaScript to resize the browser when working in Safari:

// On Safari, this will resize the Browser to IPhone dimensions
function resizeToIPhone()
{
    window.scrollTo(0,0);
    window.resizeTo(320,480);
}

Copyright © Charlie Calvert | Elvenware Home | Writing Code | Delphi | CSharp | My Books