Help with my dbutton

My dbutton appears fine how can I make it so when they click the button it closes the button and redirect then to the site

Here’s the code. Would it be gui.OpenSite then gui.OpenURL

local window = vgui.Create( "DFrame" )
	window:SetSize( 200,70 )
	window:Center()
	window:SetTitle( "Become a Donator" )
	window:MakePopup()
 
local button = vgui.Create( "DButton", window )
	button:SetSize( 100, 30 )
	button:SetPos( 50, 30 )
	button:SetText( "Donate" )
	surface.SetDrawColor( 68, 87, 101, 255 )
	button.DoClick = function( button )
		window:SetTitle( "Donation" )
		
	end
	

[editline]12th June 2013[/editline]

Problem was solved!

How about a chat command that just pulls up the webpage/donation page?