Advanced¶
Learn some advanced tips and tricks to level up your Nitro skills.
Embed web pages in a view¶
Set mode='web'
to embed external web pages.
Open web pages in a new view¶
Pass a URL to view.jump()
with target='_blank'
to open web pages in a new view.
Open web pages in a popup¶
URLs can be opened in popup windows by passing popup=1
.
view('Click Continue to open https://example.com in a new view.')
view.jump('https://example.com', popup=True, width=400, height=300, left=100, top=100)
Open web pages in the current view¶
Pass a URL to view.jump()
to open web pages in the current view.
view('Click Continue to open https://example.com in the current view.')
view.jump('https://example.com', target='_self')
Open web pages in the top level view¶
Pass a URL to view.jump()
with target='_top'
to open web pages in the top level view.